<!DOCTYPE html>
<html>
<head>
<title>index.html</title>

<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
<link rel="stylesheet" href="../css/default/om-default.css" />

<script type="text/javascript" src="../boss/jquery.min.js"></script>
<script src="../js/operamasks-ui.min.js"></script>
<script type="text/javascript" src="../boss/fly-core.js"></script>
</head>

<script type="text/javascript">
	var rpc = new fly.rpc('rpc', [ 'call', 'list' ]);
	$(document).ready(function() {
		$('#grid').omGrid({
			dataSource : rpc.list_url(),
			contentType: 'application/json; charset=utf-8',
			method :'POST',
			width:'100%',
			extraData:{"aa":"fdfd"},
			colModel : [ {
				header : '状态',
				name : 'state',
				width : 60,
				align : 'left'
			}, {
				header : '订单编号',
				name : 'code',
				width : 125,
				align : 'left'
			}],
			autoFit : true,
			height : 500

		});
		
	});
	var rpcCall = function(obj) {
		
		//alert(rpc.call(obj.value));
		alert(fly.router("test1.json",obj.value));
	}
</script>
<body>

	<input value='rpc' onclick="rpcCall(this)">
	<table id="grid"></table>
</body>
</html>
